package cn.gcyl.module.biz.dal.mysql.platformregistrationinformation;

import java.util.*;

import cn.gcyl.framework.common.pojo.PageResult;
import cn.gcyl.framework.mybatis.core.query.LambdaQueryWrapperX;
import cn.gcyl.framework.mybatis.core.mapper.BaseMapperX;
import cn.gcyl.module.biz.controller.admin.conferenceregistrationinformation.vo.ConferenceMeetingInformationPageReqVO;
import cn.gcyl.module.biz.dal.dataobject.conferenceregistrationinformation.ConferenceUserRegistrationInformationPO;
import cn.gcyl.module.biz.dal.dataobject.platformregistrationinformation.PlatformRegistrationInformationDO;
import cn.gcyl.module.biz.dal.dataobject.platformregistrationinformation.PlatformUserRegistrationInformationPO;
import org.apache.ibatis.annotations.Mapper;
import cn.gcyl.module.biz.controller.admin.platformregistrationinformation.vo.*;

/**
 * 平台报名信息 Mapper
 *
 * @author 芋道源码
 */
@Mapper
public interface PlatformRegistrationInformationMapper extends BaseMapperX<PlatformRegistrationInformationDO> {

    default PageResult<PlatformRegistrationInformationDO> selectPage(PlatformRegistrationInformationPageReqVO reqVO) {
        return selectPage(reqVO, new LambdaQueryWrapperX<PlatformRegistrationInformationDO>()
                .eqIfPresent(PlatformRegistrationInformationDO::getPlatformInformationId, reqVO.getPlatformInformationId())
                .eqIfPresent(PlatformRegistrationInformationDO::getUserId, reqVO.getUserId())
                .betweenIfPresent(PlatformRegistrationInformationDO::getCreateTime, reqVO.getCreateTime())
                .orderByDesc(PlatformRegistrationInformationDO::getId));
    }

    List<PlatformUserRegistrationInformationPO> getUserPlatformRegistrationInformationPage(PlatformUserRegistrationInformationPageReqVO pageReqVO);
    PlatformUserRegistrationInformationPO getPlatformRegistrationInformationOne(PlatformUserRegistrationInformationPageReqVO pageReqVO);
}